package kr.saeildamil.androidstudy_second20.common;

import kr.saeildamil.androidstudy_second.R;
import kr.saeildamil.androidstudy_second20.FragmentLifeCycle;
import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class FragmentEx extends Fragment {
	
	@Override
	public void onAttach(Activity activity) {
		Log.d(FragmentLifeCycle.TAG, "Fragment-onCreate()");
		super.onAttach(activity);
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		Log.d(FragmentLifeCycle.TAG, "Fragment-onCreate()");
		super.onCreate(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		Log.d(FragmentLifeCycle.TAG, "Fragment-onCreateView()");
		View root=inflater.inflate(R.layout.ch20_fragmentex, null);
		return root;
	}

	@Override
	public void onDestroy() {
		Log.d(FragmentLifeCycle.TAG, "Fragment-onDestroy()");
		super.onDestroy();
	}

	@Override
	public void onPause() {
		Log.d(FragmentLifeCycle.TAG, "Fragment-onPause()");
		super.onPause();
	}

	@Override
	public void onResume() {
		Log.d(FragmentLifeCycle.TAG, "Fragment-onResume()");
		super.onResume();
	}

	@Override
	public void onStart() {
		Log.d(FragmentLifeCycle.TAG, "Fragment-onStart()");
		super.onStart();
	}

	@Override
	public void onStop() {
		Log.d(FragmentLifeCycle.TAG, "Fragment-onStop()");
		super.onStop();
	}
	
}
